 //***************************************************************
 // Car.java               Author:20172323wyh
 //***************************************************************
 public class Car
 {
    private String Automakers;
    private String type;
    private int year;
    private int date = 2018;
   
    public Car(String makers,String model,int years)
    {
       Automakers = makers;
       type = model;
       year = years;
    }
  
    public String getMakers()
    {
       return Automakers;
    }

    public String getModel()
    {
       return type;
    }
 
    public int getYears()
    {
       return year;
    }
  
    public int getDate()
    {
       return date;
    }

    public boolean isAntique()
    {
       boolean result;
       if (date - year > 45)
          result = true;
       else 
          result = false;
       return result;
    }

    public String toString()
    {
       return Automakers + "\t" + type + "\t" + year; 
    }
 } 
